encoding/json.Decoder.buf (field)
24 uses
encoding/json (current package)
stream.go#L18: buf []byte
stream.go#L69: dec.d.init(dec.buf[dec.scanp : dec.scanp+n])
stream.go#L86: return bytes.NewReader(dec.buf[dec.scanp:])
stream.go#L102: for ; scanp < len(dec.buf); scanp++ {
stream.go#L103: c := dec.buf[scanp]
stream.go#L133: if nonSpace(dec.buf) {
stream.go#L153: n := copy(dec.buf, dec.buf[dec.scanp:])
stream.go#L154: dec.buf = dec.buf[:n]
stream.go#L160: if cap(dec.buf)-len(dec.buf) < minRead {
stream.go#L161: newBuf := make([]byte, len(dec.buf), 2*cap(dec.buf)+minRead)
stream.go#L162: copy(newBuf, dec.buf)
stream.go#L163: dec.buf = newBuf
stream.go#L167: n, err := dec.r.Read(dec.buf[len(dec.buf):cap(dec.buf)])
stream.go#L168: dec.buf = dec.buf[0 : len(dec.buf)+n]
stream.go#L493: for i := dec.scanp; i < len(dec.buf); i++ {
stream.go#L494: c := dec.buf[i]
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |